package info.peigen.hotpot.common.core.validator;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

/**
 * <b>(MobileNo)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2021/7/31
 */
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = {MobileNoValidator.class})
public @interface MobileNo {
    String message() default "{info.peigen.hotpot.common.core.lang.validator.MobileNo.message}";

    boolean nullable() default false;

    boolean blankable() default false;

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
